package com.lldpet.spring.cloud.demo.price.client.event;

import org.springframework.context.ApplicationEvent;

/**
 * @desc：spring applicationEvent 本地事件
 * @author: guanliang.xue
 * @date: 2021/5/10 13:16
 * @version:
 * @since:
 */
public class LocalApplicationEvent extends ApplicationEvent {

    private String name;

    /**
     * Create a new ApplicationEvent.
     *
     * @param source the object on which the event initially occurred (never {@code null})
     */
    public LocalApplicationEvent(Object source) {
        super(source);
    }

    public LocalApplicationEvent(Object source, String name) {
        super(source);
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
